package qc;

import java.util.ArrayList;
import java.util.HashMap;

import org.quickconnect.ControlObject;

import ui.LockDialog;
import ui.MainFrame;

public class UnlockServerVCO implements ControlObject{

	@Override
	public Object handleIt(ArrayList<Object> arg0) {
		HashMap params = (HashMap) arg0.get(arg0.size()-1);
		String success = (String) params.get("success");
		if (success.equals("true")) {
			LockDialog dialog = MainFrame.mainFrame.getLockDialog();
			dialog.unlockServer();
		}
		return null;
	}

}
